package com.situ.day5;

public class Person/* extends Object*/{
	protected int id;
	protected String name;
	protected int age;
	
	public Person() {
		super();// super()，调用父类的无参构造方法
	}

	public Person(int id, String name, int age) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
	}

	public void show() {
		System.out.println(name + "的年龄是" + age);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}
